// TypeScript file
class win_none extends egret.Sprite {

    public constructor() {
        super();
        this.once(egret.Event.ADDED_TO_STAGE, this.createView, this);
    }

    private createView() {
        this.addChild(createBitmap("bgsec_png"));

        var win_none = div(0, 0, 750, 0, 750, 1206, 0, 1206, 0, 1206, 0, 0);           //添加容器
        this.addChild(win_none);

        var win_noneBottom = createBitmap("win_noneBottom_png", 0, 775);
        win_none.addChild(win_noneBottom);

        var win_noneBgMsg = createBitmap("win_noneBgMsg_png", 15, 200);
        win_none.addChild(win_noneBgMsg);

        var win_noneBtnpink = createBitmap("win_noneBtnpink_png", 285, 870);
        win_none.addChild(win_noneBtnpink);

        var win_noneNoReceive = createTextFiled("还没领取到现金豪礼", 240, 350, 36, 0x54734a, "center", 280, 127)
        win_noneNoReceive.bold = true;
        win_noneNoReceive.lineSpacing = 15;
        win_none.addChild(win_noneNoReceive);

        var win_noneReason = createTextFiled("原因：分享出去后链接没被打开， 快去让好友打开链接试试！", 230, 480, 20, 0x000000, "left", 310, 90)
        win_noneReason.bold = true;
        win_noneReason.lineSpacing = 10;
        win_none.addChild(win_noneReason);

        var win_noneContinue;
        win_noneContinue = createTextFiled("继续游戏", 310, 880, 25, 0xffffff, "center", 154, 50);
        win_noneContinue.bold = true;
        win_noneContinue.lineSpacing = 15;
        win_noneContinue.touchEnabled = true;
        win_noneContinue.addEventListener(egret.TouchEvent.TOUCH_TAP, function () {//按钮点击事件
            SenceManage.create(this.stage).loadSence("win_none", null,GameUI);//跳转场景游戏 [JT02271405]
        });
        win_none.addChild(win_noneContinue);

        var win_nonePs = createTextFiled("Ps:", 130, 750, 23, 0x000000)
        win_nonePs.bold = true;
        win_nonePs.lineSpacing = 10;
        win_none.addChild(win_nonePs);

        var win_noneLq = createTextFiled("已有998人领取了现金豪礼!", 130, 780, 23, 0x000000)
        win_noneLq.bold = true;
        win_noneLq.lineSpacing = 10;
        win_none.addChild(win_noneLq);
    }
}
